Integrand size = 62, antiderivative size = 980 \[ \int \frac {\sqrt {a+b x} \left (a b B-a^2 C+b^2 B x+b^2 C x^2\right )}{\sqrt {c+d x} \sqrt {e+f x} \sqrt {g+h x}} \, dx=\frac {b (4 b B d f h+C (a d f h-3 b (d f g+d e h+c f h))) \sqrt {a+b x} \sqrt {e+f x} \sqrt {g+h x}}{4 d f^2 h^2 \sqrt {c+d x}}+\frac {b^2 C \sqrt {a+b x} \sqrt {c+d x} \sqrt {e+f x} \sqrt {g+h x}}{2 d f h}-\frac {b \sqrt {d g-c h} \sqrt {f g-e h} (4 b B d f h+C (a d f h-3 b (d f g+d e h+c f h))) \sqrt {a+b x} \sqrt {-\frac {(d e-c f) (g+h x)}{(f g-e h) (c+d x)}} E\left (\arcsin \left (\frac {\sqrt {d g-c h} \sqrt {e+f x}}{\sqrt {f g-e h} \sqrt {c+d x}}\right )|\frac {(b c-a d) (f g-e h)}{(b e-a f) (d g-c h)}\right )}{4 d^2 f^2 h^2 \sqrt {\frac {(d e-c f) (a+b x)}{(b e-a f) (c+d x)}} \sqrt {g+h x}}+\frac {(b e-a f) \sqrt {b g-a h} (a C d f h-b (4 B d f h-C (3 d f g+3 d e h+c f h))) \sqrt {\frac {(b e-a f) (c+d x)}{(d e-c f) (a+b x)}} \sqrt {g+h x} \operatorname {EllipticF}\left (\arcsin \left (\frac {\sqrt {b g-a h} \sqrt {e+f x}}{\sqrt {f g-e h} \sqrt {a+b x}}\right ),-\frac {(b c-a d) (f g-e h)}{(d e-c f) (b g-a h)}\right )}{4 d f^2 h^2 \sqrt {f g-e h} \sqrt {c+d x} \sqrt {-\frac {(b e-a f) (g+h x)}{(f g-e h) (a+b x)}}}-\frac {\sqrt {-d g+c h} \left ((a d f h+b (d f g+d e h+c f h)) (4 b B d f h+C (a d f h-3 b (d f g+d e h+c f h)))+4 d f h \left (2 a^2 C d f h+b^2 C (d e g+c f g+c e h)-a b (4 B d f h-C (d f g+d e h+c f h))\right )\right ) (a+b x) \sqrt {\frac {(b g-a h) (c+d x)}{(d g-c h) (a+b x)}} \sqrt {\frac {(b g-a h) (e+f x)}{(f g-e h) (a+b x)}} \operatorname {EllipticPi}\left (-\frac {b (d g-c h)}{(b c-a d) h},\arcsin \left (\frac {\sqrt {b c-a d} \sqrt {g+h x}}{\sqrt {-d g+c h} \sqrt {a+b x}}\right ),\frac {(b e-a f) (d g-c h)}{(b c-a d) (f g-e h)}\right )}{4 d^2 \sqrt {b c-a d} f^2 h^3 \sqrt {c+d x} \sqrt {e+f x}} \]
[Out]
Time = 1.89 (sec) , antiderivative size = 976, normalized size of antiderivative = 1.00, number of steps used = 9, number of rules used = 9, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.145, Rules used = {1614, 1616, 1612, 176, 430, 171, 551, 182, 435} \[ \int \frac {\sqrt {a+b x} \left (a b B-a^2 C+b^2 B x+b^2 C x^2\right )}{\sqrt {c+d x} \sqrt {e+f x} \sqrt {g+h x}} \, dx=\frac {C \sqrt {a+b x} \sqrt {c+d x} \sqrt {e+f x} \sqrt {g+h x} b^2}{2 d f h}-\frac {\sqrt {d g-c h} \sqrt {f g-e h} (4 b B d f h+a C d f h-3 b C (d f g+d e h+c f h)) \sqrt {a+b x} \sqrt {-\frac {(d e-c f) (g+h x)}{(f g-e h) (c+d x)}} E\left (\arcsin \left (\frac {\sqrt {d g-c h} \sqrt {e+f x}}{\sqrt {f g-e h} \sqrt {c+d x}}\right )|\frac {(b c-a d) (f g-e h)}{(b e-a f) (d g-c h)}\right ) b}{4 d^2 f^2 h^2 \sqrt {\frac {(d e-c f) (a+b x)}{(b e-a f) (c+d x)}} \sqrt {g+h x}}+\frac {(4 b B d f h+a C d f h-3 b C (d f g+d e h+c f h)) \sqrt {a+b x} \sqrt {e+f x} \sqrt {g+h x} b}{4 d f^2 h^2 \sqrt {c+d x}}-\frac {(b e-a f) \sqrt {b g-a h} (4 b B d f h-a C d f h-b C (c f h+3 d (f g+e h))) \sqrt {\frac {(b e-a f) (c+d x)}{(d e-c f) (a+b x)}} \sqrt {g+h x} \operatorname {EllipticF}\left (\arcsin \left (\frac {\sqrt {b g-a h} \sqrt {e+f x}}{\sqrt {f g-e h} \sqrt {a+b x}}\right ),-\frac {(b c-a d) (f g-e h)}{(d e-c f) (b g-a h)}\right )}{4 d f^2 h^2 \sqrt {f g-e h} \sqrt {c+d x} \sqrt {-\frac {(b e-a f) (g+h x)}{(f g-e h) (a+b x)}}}-\frac {\sqrt {c h-d g} \left ((a d f h+b (d f g+d e h+c f h)) (4 b B d f h+a C d f h-3 b C (d f g+d e h+c f h))+4 d f h \left (2 C d f h a^2-b (4 B d f h-C (d f g+d e h+c f h)) a+b^2 C (d e g+c f g+c e h)\right )\right ) (a+b x) \sqrt {\frac {(b g-a h) (c+d x)}{(d g-c h) (a+b x)}} \sqrt {\frac {(b g-a h) (e+f x)}{(f g-e h) (a+b x)}} \operatorname {EllipticPi}\left (-\frac {b (d g-c h)}{(b c-a d) h},\arcsin \left (\frac {\sqrt {b c-a d} \sqrt {g+h x}}{\sqrt {c h-d g} \sqrt {a+b x}}\right ),\frac {(b e-a f) (d g-c h)}{(b c-a d) (f g-e h)}\right )}{4 d^2 \sqrt {b c-a d} f^2 h^3 \sqrt {c+d x} \sqrt {e+f x}} \]
[In]
[Out]
Rule 171
Rule 176
Rule 182
Rule 430
Rule 435
Rule 551
Rule 1612
Rule 1614
Rule 1616
Rubi steps \begin{align*} \text {integral}& = \frac {b^2 C \sqrt {a+b x} \sqrt {c+d x} \sqrt {e+f x} \sqrt {g+h x}}{2 d f h}+\frac {\int \frac {4 a^2 (b B-a C) d f h-b^2 C (b c e g+a (d e g+c f g+c e h))-2 b \left (2 a^2 C d f h+b^2 C (d e g+c f g+c e h)-a b (4 B d f h-C (d f g+d e h+c f h))\right ) x+b^2 (4 b B d f h+a C d f h-3 b C (d f g+d e h+c f h)) x^2}{\sqrt {a+b x} \sqrt {c+d x} \sqrt {e+f x} \sqrt {g+h x}} \, dx}{4 d f h} \\ & = \frac {b (4 b B d f h+a C d f h-3 b C (d f g+d e h+c f h)) \sqrt {a+b x} \sqrt {e+f x} \sqrt {g+h x}}{4 d f^2 h^2 \sqrt {c+d x}}+\frac {b^2 C \sqrt {a+b x} \sqrt {c+d x} \sqrt {e+f x} \sqrt {g+h x}}{2 d f h}+\frac {\int \frac {-b \left (b (b d e g+a c f h) (4 b B d f h+a C d f h-3 b C (d f g+d e h+c f h))-2 d f h \left (4 a^2 (b B-a C) d f h-b^2 C (b c e g+a (d e g+c f g+c e h))\right )\right )-b^2 \left ((a d f h+b (d f g+d e h+c f h)) (4 b B d f h+a C d f h-3 b C (d f g+d e h+c f h))+4 d f h \left (2 a^2 C d f h+b^2 C (d e g+c f g+c e h)-a b (4 B d f h-C (d f g+d e h+c f h))\right )\right ) x}{\sqrt {a+b x} \sqrt {c+d x} \sqrt {e+f x} \sqrt {g+h x}} \, dx}{8 b d^2 f^2 h^2}+\frac {(b (d e-c f) (d g-c h) (4 b B d f h+a C d f h-3 b C (d f g+d e h+c f h))) \int \frac {\sqrt {a+b x}}{(c+d x)^{3/2} \sqrt {e+f x} \sqrt {g+h x}} \, dx}{8 d^2 f^2 h^2} \\ & = \frac {b (4 b B d f h+a C d f h-3 b C (d f g+d e h+c f h)) \sqrt {a+b x} \sqrt {e+f x} \sqrt {g+h x}}{4 d f^2 h^2 \sqrt {c+d x}}+\frac {b^2 C \sqrt {a+b x} \sqrt {c+d x} \sqrt {e+f x} \sqrt {g+h x}}{2 d f h}-\frac {((b e-a f) (b g-a h) (4 b B d f h-a C d f h-b C (c f h+3 d (f g+e h)))) \int \frac {1}{\sqrt {a+b x} \sqrt {c+d x} \sqrt {e+f x} \sqrt {g+h x}} \, dx}{8 d f^2 h^2}-\frac {\left ((a d f h+b (d f g+d e h+c f h)) (4 b B d f h+a C d f h-3 b C (d f g+d e h+c f h))+4 d f h \left (2 a^2 C d f h+b^2 C (d e g+c f g+c e h)-a b (4 B d f h-C (d f g+d e h+c f h))\right )\right ) \int \frac {\sqrt {a+b x}}{\sqrt {c+d x} \sqrt {e+f x} \sqrt {g+h x}} \, dx}{8 d^2 f^2 h^2}-\frac {\left (b (d g-c h) (4 b B d f h+a C d f h-3 b C (d f g+d e h+c f h)) \sqrt {a+b x} \sqrt {\frac {(-d e+c f) (g+h x)}{(f g-e h) (c+d x)}}\right ) \text {Subst}\left (\int \frac {\sqrt {1+\frac {(-b c+a d) x^2}{b e-a f}}}{\sqrt {1-\frac {(d g-c h) x^2}{f g-e h}}} \, dx,x,\frac {\sqrt {e+f x}}{\sqrt {c+d x}}\right )}{4 d^2 f^2 h^2 \sqrt {\frac {(d e-c f) (a+b x)}{(b e-a f) (c+d x)}} \sqrt {g+h x}} \\ & = \frac {b (4 b B d f h+a C d f h-3 b C (d f g+d e h+c f h)) \sqrt {a+b x} \sqrt {e+f x} \sqrt {g+h x}}{4 d f^2 h^2 \sqrt {c+d x}}+\frac {b^2 C \sqrt {a+b x} \sqrt {c+d x} \sqrt {e+f x} \sqrt {g+h x}}{2 d f h}-\frac {b \sqrt {d g-c h} \sqrt {f g-e h} (4 b B d f h+a C d f h-3 b C (d f g+d e h+c f h)) \sqrt {a+b x} \sqrt {-\frac {(d e-c f) (g+h x)}{(f g-e h) (c+d x)}} E\left (\sin ^{-1}\left (\frac {\sqrt {d g-c h} \sqrt {e+f x}}{\sqrt {f g-e h} \sqrt {c+d x}}\right )|\frac {(b c-a d) (f g-e h)}{(b e-a f) (d g-c h)}\right )}{4 d^2 f^2 h^2 \sqrt {\frac {(d e-c f) (a+b x)}{(b e-a f) (c+d x)}} \sqrt {g+h x}}-\frac {\left (\left ((a d f h+b (d f g+d e h+c f h)) (4 b B d f h+a C d f h-3 b C (d f g+d e h+c f h))+4 d f h \left (2 a^2 C d f h+b^2 C (d e g+c f g+c e h)-a b (4 B d f h-C (d f g+d e h+c f h))\right )\right ) (a+b x) \sqrt {\frac {(b g-a h) (c+d x)}{(d g-c h) (a+b x)}} \sqrt {\frac {(b g-a h) (e+f x)}{(f g-e h) (a+b x)}}\right ) \text {Subst}\left (\int \frac {1}{\left (h-b x^2\right ) \sqrt {1+\frac {(b c-a d) x^2}{d g-c h}} \sqrt {1+\frac {(b e-a f) x^2}{f g-e h}}} \, dx,x,\frac {\sqrt {g+h x}}{\sqrt {a+b x}}\right )}{4 d^2 f^2 h^2 \sqrt {c+d x} \sqrt {e+f x}}-\frac {\left ((b e-a f) (b g-a h) (4 b B d f h-a C d f h-b C (c f h+3 d (f g+e h))) \sqrt {\frac {(b e-a f) (c+d x)}{(d e-c f) (a+b x)}} \sqrt {g+h x}\right ) \text {Subst}\left (\int \frac {1}{\sqrt {1+\frac {(b c-a d) x^2}{d e-c f}} \sqrt {1-\frac {(b g-a h) x^2}{f g-e h}}} \, dx,x,\frac {\sqrt {e+f x}}{\sqrt {a+b x}}\right )}{4 d f^2 h^2 (f g-e h) \sqrt {c+d x} \sqrt {\frac {(-b e+a f) (g+h x)}{(f g-e h) (a+b x)}}} \\ & = \frac {b (4 b B d f h+a C d f h-3 b C (d f g+d e h+c f h)) \sqrt {a+b x} \sqrt {e+f x} \sqrt {g+h x}}{4 d f^2 h^2 \sqrt {c+d x}}+\frac {b^2 C \sqrt {a+b x} \sqrt {c+d x} \sqrt {e+f x} \sqrt {g+h x}}{2 d f h}-\frac {b \sqrt {d g-c h} \sqrt {f g-e h} (4 b B d f h+a C d f h-3 b C (d f g+d e h+c f h)) \sqrt {a+b x} \sqrt {-\frac {(d e-c f) (g+h x)}{(f g-e h) (c+d x)}} E\left (\sin ^{-1}\left (\frac {\sqrt {d g-c h} \sqrt {e+f x}}{\sqrt {f g-e h} \sqrt {c+d x}}\right )|\frac {(b c-a d) (f g-e h)}{(b e-a f) (d g-c h)}\right )}{4 d^2 f^2 h^2 \sqrt {\frac {(d e-c f) (a+b x)}{(b e-a f) (c+d x)}} \sqrt {g+h x}}-\frac {(b e-a f) \sqrt {b g-a h} (4 b B d f h-a C d f h-b C (c f h+3 d (f g+e h))) \sqrt {\frac {(b e-a f) (c+d x)}{(d e-c f) (a+b x)}} \sqrt {g+h x} F\left (\sin ^{-1}\left (\frac {\sqrt {b g-a h} \sqrt {e+f x}}{\sqrt {f g-e h} \sqrt {a+b x}}\right )|-\frac {(b c-a d) (f g-e h)}{(d e-c f) (b g-a h)}\right )}{4 d f^2 h^2 \sqrt {f g-e h} \sqrt {c+d x} \sqrt {-\frac {(b e-a f) (g+h x)}{(f g-e h) (a+b x)}}}-\frac {\sqrt {-d g+c h} \left ((a d f h+b (d f g+d e h+c f h)) (4 b B d f h+a C d f h-3 b C (d f g+d e h+c f h))+4 d f h \left (2 a^2 C d f h+b^2 C (d e g+c f g+c e h)-a b (4 B d f h-C (d f g+d e h+c f h))\right )\right ) (a+b x) \sqrt {\frac {(b g-a h) (c+d x)}{(d g-c h) (a+b x)}} \sqrt {\frac {(b g-a h) (e+f x)}{(f g-e h) (a+b x)}} \Pi \left (-\frac {b (d g-c h)}{(b c-a d) h};\sin ^{-1}\left (\frac {\sqrt {b c-a d} \sqrt {g+h x}}{\sqrt {-d g+c h} \sqrt {a+b x}}\right )|\frac {(b e-a f) (d g-c h)}{(b c-a d) (f g-e h)}\right )}{4 d^2 \sqrt {b c-a d} f^2 h^3 \sqrt {c+d x} \sqrt {e+f x}} \\ \end{align*}
Leaf count is larger than twice the leaf count of optimal. \(21961\) vs. \(2(980)=1960\).
Time = 36.91 (sec) , antiderivative size = 21961, normalized size of antiderivative = 22.41 \[ \int \frac {\sqrt {a+b x} \left (a b B-a^2 C+b^2 B x+b^2 C x^2\right )}{\sqrt {c+d x} \sqrt {e+f x} \sqrt {g+h x}} \, dx=\text {Result too large to show} \]
[In]
[Out]
Leaf count of result is larger than twice the leaf count of optimal. \(1833\) vs. \(2(897)=1794\).
Time = 5.28 (sec) , antiderivative size = 1834, normalized size of antiderivative = 1.87
method | result | size |
elliptic | \(\text {Expression too large to display}\) | \(1834\) |
default | \(\text {Expression too large to display}\) | \(56432\) |
[In]
[Out]
Timed out. \[ \int \frac {\sqrt {a+b x} \left (a b B-a^2 C+b^2 B x+b^2 C x^2\right )}{\sqrt {c+d x} \sqrt {e+f x} \sqrt {g+h x}} \, dx=\text {Timed out} \]
[In]
[Out]
\[ \int \frac {\sqrt {a+b x} \left (a b B-a^2 C+b^2 B x+b^2 C x^2\right )}{\sqrt {c+d x} \sqrt {e+f x} \sqrt {g+h x}} \, dx=\int \frac {\left (a + b x\right )^{\frac {3}{2}} \left (B b - C a + C b x\right )}{\sqrt {c + d x} \sqrt {e + f x} \sqrt {g + h x}}\, dx \]
[In]
[Out]
\[ \int \frac {\sqrt {a+b x} \left (a b B-a^2 C+b^2 B x+b^2 C x^2\right )}{\sqrt {c+d x} \sqrt {e+f x} \sqrt {g+h x}} \, dx=\int { \frac {{\left (C b^{2} x^{2} + B b^{2} x - C a^{2} + B a b\right )} \sqrt {b x + a}}{\sqrt {d x + c} \sqrt {f x + e} \sqrt {h x + g}} \,d x } \]
[In]
[Out]
\[ \int \frac {\sqrt {a+b x} \left (a b B-a^2 C+b^2 B x+b^2 C x^2\right )}{\sqrt {c+d x} \sqrt {e+f x} \sqrt {g+h x}} \, dx=\int { \frac {{\left (C b^{2} x^{2} + B b^{2} x - C a^{2} + B a b\right )} \sqrt {b x + a}}{\sqrt {d x + c} \sqrt {f x + e} \sqrt {h x + g}} \,d x } \]
[In]
[Out]
Timed out. \[ \int \frac {\sqrt {a+b x} \left (a b B-a^2 C+b^2 B x+b^2 C x^2\right )}{\sqrt {c+d x} \sqrt {e+f x} \sqrt {g+h x}} \, dx=\int \frac {\sqrt {a+b\,x}\,\left (-C\,a^2+B\,a\,b+C\,b^2\,x^2+B\,b^2\,x\right )}{\sqrt {e+f\,x}\,\sqrt {g+h\,x}\,\sqrt {c+d\,x}} \,d x \]
[In]
[Out]